package com.itheima.service.mongo;


import com.itheima.domain.db.PageBeanVo;
import com.itheima.domain.mongo.Movement;
import org.bson.types.ObjectId;

public interface MovementService {

    // 发布动态
    void saveMovement(Movement movement);

    PageBeanVo findMyMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    PageBeanVo findFriendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    PageBeanVo findRecommendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    // 根据主键查询
    Movement findById(ObjectId id);
}
